package com.ldzy.controller;

import com.ldzy.pojo.Record;
import com.ldzy.service.IRecordService;
import com.ldzy.utilts.RespUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/record")
@RestController
public class RecordController {
    @Resource
    IRecordService iRecordService;
    @GetMapping("/findByUserId")
    public RespUtil findByUserId(Record record){
        return  iRecordService.findByUserId(record);
    }
}
